<?php
// $Id: xoops_version.php,v 1.11 2004/12/02 C.Felix alias the Cat$
//  ------------------------------------------------------------------------ //
//             XF Guestbook                                                  //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

$modversion['name'] = _MI_XFGB_NAME;
$modversion['version'] = '2.22';
$modversion['description'] = _MI_XFGB_DESC;
$modversion['credits'] = "";
$modversion['author'] = "the Cat";
$modversion['help'] = "";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "images/xfguestbook_slogo.png";
$modversion['dirname'] = "xfguestbook";

// Sql file 
$modversion['sqlfile']['mysql'] = "sql/mysql.sql";
$modversion['tables'][0] = "xfguestbook_msg";
$modversion['tables'][1] = "xfguestbook_config";
$modversion['tables'][2] = "xfguestbook_country";

//Admin things
$modversion['hasAdmin'] = 1;
$modversion['adminindex'] = "admin/index.php";
$modversion['adminmenu'] = "admin/menu.php";

// Menu
$modversion['hasMain'] = 1;

// Search
$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "include/search.inc.php";
$modversion['search']['func'] = "xfguestbook_search";

// Templates
$modversion['templates'][1]['file'] = 'xfguestbook_index.html';
$modversion['templates'][1]['description'] = '';
$modversion['templates'][2]['file'] = 'xfguestbook_item.html';
$modversion['templates'][2]['description'] = '';
$modversion['templates'][3]['file'] = 'xfguestbook_signform.html';
$modversion['templates'][3]['description'] = '';

// Config Settings
// number messages per page
$modversion['config'][1] = array(
	'name'			=> 'perpage',
	'title' 		=> '_MI_XFGB_NBMSG',
	'description'	=> '_MI_XFGB_NBMSGDSC',
	'formtype'		=> 'textbox',
	'valuetype'		=> 'int',
	'default'		=> '5'
) ;
// anonymious can post
$modversion['config'][] = array(
	'name'			=> 'anonsign',
	'title' 		=> '_MI_XFGB_ANONSIGN',
	'description'	=> '_MI_XFGB_ANONSIGNDSC',
	'formtype'		=> 'yesno',
	'valuetype'		=> 'int',
	'default'		=> '0'
) ;
// Moderate
$modversion['config'][] = array(
	'name'			=> 'moderate',
	'title' 		=> '_MI_XFGB_MODERATE',
	'description'	=> '_MI_XFGB_MODERATEDSC',
	'formtype'		=> 'yesno',
	'valuetype'		=> 'int',
	'default'		=> '0'
) ;
// send mail to webmaster
$modversion['config'][] = array(
	'name'			=> 'sendmail2wm',
	'title' 		=> '_MI_XFGB_SENDMAIL',
	'description'	=> '_MI_XFGB_SENDMAILDSC',
	'formtype'		=> 'yesno',
	'valuetype'		=> 'int',
	'default'		=> '0'
) ;
// Display avatar and rank
$modversion['config'][] = array(
	'name'			=> 'display_avatar',
	'title' 		=> '_MI_XFGB_AVATAR',
	'description'	=> '_MI_XFGB_AVATARDSC',
	'formtype'		=> 'yesno',
	'valuetype'		=> 'int',
	'default'		=> '1'
) ;
// Photo max size
$modversion['config'][] = array(
	'name'			=>'photo_maxsize',
	'title' 		=>'_MI_XFGB_MAXSIZEIMG',
	'description'	=> '_MI_XFGB_MAXSIZEIMG_DESC',
	'formtype'		=> 'textbox',
	'valuetype'		=> 'int',
	'default'		=> '30000',
	'options'		=> array()
) ;

// Photo max height
$modversion['config'][] = array(
	'name'			=>'photo_maxheight',
	'title' 		=>'_MI_XFGB_MAXHEIGHTIMG',
	'description'	=> '',
	'formtype'		=> 'textbox',
	'valuetype'		=> 'int',
	'default'		=> '120',
	'options'		=> array()
) ;

// Photo max width
$modversion['config'][] = array(
	'name'			=>'photo_maxwidth',
	'title' 		=>'_MI_XFGB_MAXWIDTHIMG',
	'description'	=> '',
	'formtype'		=> 'textbox',
	'valuetype'		=> 'int',
	'default'		=> '120',
	'options'		=> array()
) ;

// Blocks
$modversion['blocks'][1]['file'] = "xfguestbook_new.php";
$modversion['blocks'][1]['name'] = _MI_XFGB_BNAME1;
$modversion['blocks'][1]['description'] = "Shows recently added donwload files";
$modversion['blocks'][1]['show_func'] = "b_xfguestbook_show";
$modversion['blocks'][1]['edit_func'] = "b_xfguestbook_edit";
$modversion['blocks'][1]['options'] = "5|19";
$modversion['blocks'][1]['template'] = "xfguestbook_block_new.html";
?>